<?php
use yii\bootstrap\ActiveForm;

?>
<style>
	.itemList{margin-bottom: 20px;padding-left: 65px;}
	.itemList .item-name {width: 100px;margin-right: 20px;}
	.itemList .item-txt input[type="text"]{width: 256px;height: 34px;}
	.cardRefund .ok,.cardRefund .rest{background-color: #fe7b9d;color: #fff;border-radius: 5px;padding: 5px 31px;}
	.cardRefund .rest{background-color: #a4a9ad;}
</style>
<div class="cardRefund mt30">
	<div class="hide"><iframe name='send_post' id='send_post'></iframe></div>
	<?php ActiveForm::begin(['options'=>['target'=>'send_post']])?>
	  <div class="itemList clearfix">
		  <label class="item-name" for="name">回收卡金：</label>
		  <div class="item-txt">
			  <input type="text" class="mr20" data-rule="" name="balance" id="name" ><span>余额:<em class="red"><?=$member_info->member_balance?></em></span>
		  </div>
	  </div>
	  <div class="itemList clearfix">
		<label class="item-name" for="mobile">回收赠送金：</label>
		  <div class="item-txt">
			  <input type="text" class="mr20" data-rule="" id="mobile" name="give_balance" ><span>余额:<em class="red"><?=$member_info->member_give_balance?></em></span>
		  </div>
	  </div>
	  <div class="itemList clearfix">
	    <label class="item-name" for="cash">退现金：</label>
		  <div class="item-txt">
			<input type="text" class="" data-rule="" id="cash" name="cash">
		  </div>
	  </div>
	<div class="text-center" style="margin-bottom: 40px;">
		 <span class="btnBg" style="width: 92px; height: 32px;line-height: 32px;">
			  <input type="submit" value="确定" style="display: inline-block; width: 100%; background: 0; border: 0 ;padding: 0" /></span>
		 <span class="btnBg bg_rest ml20" style="width: 92px; height: 32px;line-height: 32px;">
			 <input type="reset" value="取消"  class="rest" style="display: inline-block; width: 100%; background: 0; border: 0;padding: 0"/></span>
	</div>
	<?php ActiveForm::end()?>

</div>

<?php $this->beginBlock('js_index_end') ?>
$(function(){
var index = parent.layer.getFrameIndex(window.name);
parent.layer.iframeAuto(index);
$('input[type="reset"]').click(function(){
parent.layer.close(index);
})

})
<?php $this->endBlock() ?>
<?php $this->registerJs($this->blocks['js_index_end'], $this::POS_END); ?>
<?php $this->registerJsFile("@web/system/financial/cashier/balancecardrefund.js",['position'=>$this::POS_END]);?>
